package com.gxa.order.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.order.pojo.Hotel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public interface HotelMapper extends BaseMapper<Hotel> {

    List findAllHotelByCondition(Map map);

    List findHotelRoomTypeById(Integer hotel_id);

    int updateHotelStatusById(Integer hotel_id);

    Hotel selectHotelById(Integer hotel_id);

    int deleteHotelById(Integer hotel_id);

    int addExanmine(Integer id);

    int agreeExanmine(Integer id);

    int notAgreeExamine(Integer id);

    int exchangeRoom(HashMap map);

    int addRoomNumber(@Param("hotel_id") Integer hotel_id, @Param("room_number") Integer room_number);
}
